FROM java:8
EXPOSE 8849
ARG JAR_FILE
ADD target/${JAR_FILE} /sentinel-dashboard.jar
ADD startup.sh /startup.sh
RUN chmod u+x /sentinel-dashboard.jar && \
    chmod u+x /startup.sh
#ENTRYPOINT ["/waiter-service.jar","start","-Dserver.port=8849 -Dcsp.sentinel.dashboard.server=localhost:8849 -Dproject.name=sentinel-dashboard -Dnacos.server-addr=192.168.1.220:8848"]
#ENTRYPOINT ["java","-jar","-Dserver.port=8849 -Dcsp.sentinel.dashboard.server=localhost:8849 -Dproject.name=sentinel-dashboard -Dnacos.server-addr=192.168.1.220:8848","/waiter-service.jar"]
ENTRYPOINT ["/startup.sh"]
